/**
 * 
 */
package com.school.homeServlet.cmd;

import java.io.IOException;
import java.util.logging.Logger;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author KK
 *
 */
public class AboutUsCommand implements HomeCommand {

	/* (non-Javadoc)
	 * @see com.school.homeServlet.cmd.HomeCommand#processRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.ServletConfig)
	 */
	public static Logger log = Logger.getLogger(AboutUsCommand.class.getSimpleName());
	@Override
	public void processRequest(HttpServletRequest req,
			HttpServletResponse resp, ServletConfig config)
			throws ServletException, IOException {
		// TODO Auto-generated method stub
		
		System.out.println("entered processRequest()+kkkkkkkkkkkkkkkkk");
		
		
		req.setAttribute("aboutUs", true);
		req.setAttribute("adminRegistrationForm", false);
		req.setAttribute("newRegistrationForm", false);
		req.setAttribute("contactUs", false);
	//	req.setAttribute("examSchedule", false);
	//	req.setAttribute("examResult", false);
	//	req.setAttribute("interviewSchedule", false);
	//	req.setAttribute("interviewResult", false);
		
		
		RequestDispatcher dispatcher = req.getRequestDispatcher("/school_home.jsp");
		dispatcher.forward(req, resp);
		
		System.out.println("exited processRequest()");

	}

}
